/**
 * @Author Big_white
 * @Date 2021/11/10
 */
public class Department extends OrganizationComponent{

    //没有集合


    public Department(String name, String des) {
        super(name, des);
    }

    //add方法和remove方法就不需要再写了
    //因为它是叶子节点


    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDes() {
        return super.getDes();
    }

    @Override
    protected void print() {
        System.out.println(getName());
    }
}
